Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
iclose_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Roc authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_netio/target_libuv/roc_netio/iclose_handler.h
10
//! @brief Close handler.
11
12
#ifndef ROC_NETIO_ICLOSE_HANDLER_H_
13
#define ROC_NETIO_ICLOSE_HANDLER_H_
14
15
#include "
roc_netio/basic_port.h
"
16
17
namespace
roc
{
18
namespace
netio {
19
20
//! Close handler interface.
21
class
ICloseHandler
{
22
public
:
23
virtual
~ICloseHandler
();
24
25
//! Handle asynchronously closed port.
26
//!
27
//! @remarks
28
//! - After this call closed port should not be used.
29
//! - Should be called from the event loop thread.
30
virtual
void
handle_closed
(
BasicPort
&) = 0;
31
};
32
33
}
// namespace netio
34
}
// namespace roc
35
36
#endif
// ROC_NETIO_ICLOSE_HANDLER_H_
basic_port.h
Basic network port.
roc::netio::BasicPort
Basic port interface.
Definition:
basic_port.h:24
roc::netio::ICloseHandler
Close handler interface.
Definition:
iclose_handler.h:21
roc::netio::ICloseHandler::handle_closed
virtual void handle_closed(BasicPort &)=0
Handle asynchronously closed port.
roc
Root namespace.
roc_netio
target_libuv
roc_netio
iclose_handler.h
Generated by
1.9.5